package cn.fy.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "customer")
public class Customer {
	@Id
	private String id;
	private String userName;
	private String address;
	private int age;
	public Customer() {
		super();
	}
	public Customer(String userName, String address, int age) {
		super();
		this.userName = userName;
		this.address = address;
		this.age = age;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return "Customer [id=" + id + ", userName=" + userName + ", address=" + address + ", age=" + age + "]";
	}
}
